home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / codecs / qdmediahandler / qdmediacommon.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.8 KB  |  86 lines

  1. //////////
  2. //
  3. //    File:        QDMediaCommon.h
  4. //
  5. //    Contains:    Header file for things common to QuickDraw media handler and media creator.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         01/14/99    rtm        
  14. //       
  15. //////////
  16.  
  17. #ifndef __QDMEDIACOMMON__
  18. #define __QDMEDIACOMMON__
  19.  
  20.  
  21. //////////
  22. //
  23. // compiler flags
  24. //
  25. //////////
  26.  
  27. #define HANDLER_SWAPS_SAMPLE_DESC        0            // does handler implement _SampleDescriptionB2N/N2B?
  28.  
  29.  
  30. //////////
  31. //
  32. // constants
  33. //
  34. //////////
  35.  
  36. #define kQDMH_MediaType                    'Qdrw'
  37. #define kQDMH_Version                    0x00010001
  38. #define kQDMH_ComponentManufacturer        'WANG'        // component manufacturer
  39.  
  40. // resource IDs
  41. #define kQDMH_ComponentResID            1000        // ID of media handler 'thng' and code resources
  42. #define kQDMH_NameStringResID            1000        // ID of codec name resource
  43. #define kQDMH_InfoStringResID            1001        // ID of codec info string resource
  44. #define kQDMH_IconResID                    1000        // ID of codec icon resource
  45.  
  46.  
  47. // resource names
  48. #define kQDMH_Name                        "QuickDraw Media Handler"
  49.  
  50.  
  51. #ifndef REZ
  52. //////////
  53. //
  54. // data types
  55. //
  56. //////////
  57.  
  58. #if PRAGMA_STRUCT_ALIGN
  59.     #pragma options align=mac68k
  60. #elif PRAGMA_STRUCT_PACKPUSH
  61.     #pragma pack(push, 2)
  62. #elif PRAGMA_STRUCT_PACK
  63.     #pragma pack(2)
  64. #endif
  65.  
  66. typedef struct QDrawDescription {
  67.     long                            size;                    // total size of QDrawDescription
  68.     long                            type;                    // QDrawMediaType
  69.     long                            resvd1;
  70.     short                            resvd2;
  71.     short                            dataRefIndex;
  72.     long                            version;                // the version of this data
  73. } QDrawDescription, *QDrawDescriptionPtr, **QDrawDescriptionHandle;
  74.  
  75. #if PRAGMA_STRUCT_ALIGN
  76.     #pragma options align=reset
  77. #elif PRAGMA_STRUCT_PACKPUSH
  78.     #pragma pack(pop)
  79. #elif PRAGMA_STRUCT_PACK
  80.     #pragma pack()
  81. #endif
  82.  
  83. #endif    // #ifndef REZ
  84.  
  85. #endif    // #ifndef __QDMEDIACOMMON__
  86.